/* 本地有约 - 自定义样式 */

:root {
    --primary-color: #61975f;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 导航栏 */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 卡片样式 */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 活动卡片 */
.activity-card {
    margin-bottom: 20px;
}

.activity-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.activity-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* 用户头像 */
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* 评分星星 */
.rating-stars {
    color: #ffc107;
}

.rating-stars i {
    cursor: pointer;
}

/* 评论区 */
.comment-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 15px;
}

.comment-reply {
    margin-left: 30px;
    border-left: 2px solid var(--secondary-color);
}

/* 按钮样式 */
.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 徽章 */
.badge-status {
    font-size: 0.85rem;
    padding: 5px 10px;
}

/* 地图容器 */
#map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

/* 积分显示 */
.points-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--warning-color);
}

/* 奖品卡片 */
.reward-card {
    position: relative;
}

.reward-card .stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

/* 消息列表 */
.message-item {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s;
}

.message-item:hover {
    background-color: #f8f9fa;
}

.message-unread {
    background-color: #e7f3ff;
}

/* 响应式 */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem !important;
    }

    .display-4 {
        font-size: 2rem;
    }
}

/* 加载动画 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 表单验证 */
.is-invalid {
    border-color: var(--danger-color);
}

.is-valid {
    border-color: var(--success-color);
}

/* 工具提示 */
.tooltip-inner {
    max-width: 300px;
}

/* 分页 */
.pagination {
    margin-top: 20px;
}

/* 空状态 */
.empty-state {
    /*text-align: center;*/
    padding: 60px 20px;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 5px 12px;
    margin: 3px;
    background: #e9ecef;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}
